package com.simple.upms.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.simple.upms.api.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 系统角色mapper
 *
 * @author Administrator
 * @date 2021/01/04 15:42:55
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 通过用户id查询角色列表
     *
     * @param userId 用户id
     * @return {@link List<SysRole>}
     */
    List<SysRole> listRolesByUserId(@Param("userId") String userId);
}
